Contents | Index | < Browse | Browse >

LETTERsetbufULETTER Sets the buffer for a file.

Overview
#include <stdio.h>

(void) setbuf(f,buf);

FILE *f;
char *buf;

Portability
ANSI

Description
Sets a data buffer "buf" with the size BUFSIZ for the file pointed to by "f". Normally, it's not necessary to manually set a buffer as every file automatically gets a buffer at opening.

See also
setvbuf